﻿using System;
using System.Data;
using Team4Mock.DAO;

namespace Team4Mock.Entity
{
    public class PremiseEntity
    {
        PremiseDAO p=new PremiseDAO();
        private int id;
        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        private int refId;
        private int premisesID;
        private string locationName;
        private string knowAs;
        private string locationStatus;
        private string locationStatusDate;
        private string addressLine1;
        private string addressLine2;
        private string addressLine3;
        private string postCode;
        private string town;
        private string county;
        private string country;
        private int primaryLocation;
        private int locationManaged;
        private int sTNetworkConectivity;
        private string locationDescription;
        private string phonNumber;
        private string generalFaxNumber;
        private string minicommNumber;
        private int isNewShop;
        private string shopFlagDate;
        private int specialistShop;
        private int mediaContact;
        private string mediaContactName;
        private string localDemographicNotes;
        private int cateringFacilities;
        private string cateringContact;
        private string cateringType;
        private string iSNetwork;
        private int clientITFacilities;
        private string clientITFacilitiesDetail;
        private int roomAvailability;
        private int volunteeringOpportunities;
        private string travelDetail;
        private string travelNearestBus;
        private string travelNearestRail;
        private string travelNearestAirport;
        private int hostVisits;
        private string hostingContact;
        private int visitorParkingOnsite;
        private string visitorParkingSpaces;
        private string visitorParkingAltemnative;
        private string roomOnlyRate;
        private string bAndBRate;
        private string dBBRate;
        private string hrRate;
        private string ddRate;
        private string teaAndCoffe;
        private int lunch;
        private string noOfMeetingRooms;
        private string meetingRoomRatePerDay;
        private string codings;
        private string negotiatedRoomOnlyRate;
        private string bBNegotiatedRate;
        private string dBBNegotiatedRate;
        private string dDNegotiatedRate;
        private string hrNegotiatedRate;
        private string lastNegotiatedRate;
        private string reNegotiateOn;
        private string preferredStatus;
        private string comments;
        private int organizationid;
        public int PremisesID
        {
            get { return this.premisesID; }
            set
            {
                this.premisesID = value;
            }
        }

        public string Key { get; set; }
        public int RefID
        {
            get { return this.refId; }
            set
            {
                this.refId = value;
            }
        }

        public int IsActive { get; set; }
        public string LocationName
        {
            get { return this.locationName; }
            set { this.locationName = value; }
        }
        public string KnowAs
        {
            get { return this.knowAs; }
            set { this.knowAs = value; }
        }
        public string LocationStatus
        {
            get { return this.locationStatus; }
            set { this.locationStatus = value; }
        }
        public string LocationStatusDate
        {
            get { return this.locationStatusDate; }
            set { this.locationStatusDate = value; }
        }
        public string AddressLine1
        {
            get { return this.addressLine1; }
            set { this.addressLine1 = value; }
        }
        public string AddressLine2
        {
            get { return this.addressLine2; }
            set { this.addressLine2 = value; }
        }
        public string AddressLine3
        {
            get { return this.addressLine3; }
            set { this.addressLine3 = value; }
        }
        public string PostCode
        {
            get { return this.postCode; }
            set { this.postCode = value; }
        }
        public string Town
        {
            get { return this.town; }
            set { this.town = value; }
        }
        public string County
        {
            get { return this.county; }
            set { this.county = value; }
        }
        public string Country
        {
            get { return this.country; }
            set { this.country = value; }
        }
        public int PrimaryLocation
        {
            get { return this.primaryLocation; }
            set { this.primaryLocation = value; }
        }
        public int LocationManaged
        {
            get { return this.locationManaged; }
            set { this.locationManaged = value; }
        }
        public int STNetworkConectivity
        {
            get { return this.sTNetworkConectivity; }
            set { this.sTNetworkConectivity = value; }
        }
        public string LocationDescription
        {
            get { return this.locationDescription; }
            set { this.locationDescription = value; }
        }
        public string PhonNumber
        {
            get { return this.phonNumber; }
            set { this.phonNumber = value; }
        }
        public string GeneralFaxNumber
        {
            get { return this.generalFaxNumber; }
            set { this.generalFaxNumber = value; }
        }
        public string MinicommNumber
        {
            get { return this.minicommNumber; }
            set { this.minicommNumber = value; }
        }
        public int IsNewShop
        {
            get { return this.isNewShop; }
            set { this.isNewShop = value; }
        }
        public string ShopFlagDate
        {
            get { return this.shopFlagDate; }
            set { this.shopFlagDate = value; }
        }
        public int SpecialistShop
        {
            get { return this.specialistShop; }
            set { this.specialistShop = value; }
        }
        public int MediaContact
        {
            get { return this.mediaContact; }
            set { this.mediaContact = value; }
        }
        public string MediaContactName
        {
            get { return this.mediaContactName; }
            set { this.mediaContactName = value; }
        }
        public string LocalDemographicNotes
        {
            get { return this.localDemographicNotes; }
            set { this.localDemographicNotes = value; }
        }
        public int CateringFacilities
        {
            get { return this.cateringFacilities; }
            set { this.cateringFacilities = value; }
        }
        public string CateringContact
        {
            get { return this.cateringContact; }
            set { this.cateringContact = value; }
        }
        public string CateringType
        {
            get { return this.cateringType; }
            set { this.cateringType = value; }
        }
        public string ISNetwork
        {
            get { return this.iSNetwork; }
            set { this.iSNetwork = value; }
        }
        public int ClientITFacilities
        {
            get { return this.clientITFacilities; }
            set { this.clientITFacilities = value; }
        }
        public string ClientITFacilitiesDetail
        {
            get { return this.clientITFacilitiesDetail; }
            set { this.clientITFacilitiesDetail = value; }
        }
        public int RoomAvailability
        {
            get { return this.roomAvailability; }
            set { this.roomAvailability = value; }
        }
        public int VolunteeringOpportunities
        {
            get { return this.volunteeringOpportunities; }
            set { this.volunteeringOpportunities = value; }
        }
        public string TravelDetail
        {
            get { return this.travelDetail; }
            set { this.travelDetail = value; }
        }
        public string TravelNearestBus
        {
            get { return this.travelNearestBus; }
            set { this.travelNearestBus = value; }
        }
        public string TravelNearestRail
        {
            get { return this.travelNearestRail; }
            set { this.travelNearestRail = value; }
        }
        public string TravelNearestAirport
        {
            get { return this.travelNearestAirport; }
            set { this.travelNearestAirport = value; }
        }
        public int HostVisits
        {
            get { return this.hostVisits; }
            set { this.hostVisits = value; }
        }
        public string HostingContact
        {
            get { return this.hostingContact; }
            set { this.hostingContact = value; }
        }
        public int VisitorParkingOnsite
        {
            get { return this.visitorParkingOnsite; }
            set { this.visitorParkingOnsite = value; }
        }
        public string VisitorParkingSpaces
        {
            get { return this.visitorParkingSpaces; }
            set { this.visitorParkingSpaces = value; }
        }
        public string VisitorParkingAltemnative
        {
            get { return this.visitorParkingAltemnative; }
            set { this.visitorParkingAltemnative = value; }
        }
        public string RoomOnlyRate
        {
            get { return this.roomOnlyRate; }
            set { this.roomOnlyRate = value; }
        }
        public string BAndBRate
        {
            get { return this.bAndBRate; }
            set { this.bAndBRate = value; }
        }
        public string DBBRate
        {
            get { return this.dBBRate; }
            set { this.dBBRate = value; }
        }
        public string DDRate
        {
            get { return this.ddRate; }
            set { this.ddRate = value; }
        }
        public string HrRate
        {
            get { return this.hrRate; }
            set { this.hrRate = value; }
        }
        public string TeaAndCoffe
        {
            get { return this.teaAndCoffe; }
            set { this.teaAndCoffe = value; }
        }
        public int Lunch
        {
            get { return this.lunch; }
            set { this.lunch = value; }
        }
        public string NoOfMeetingRooms
        {
            get { return this.noOfMeetingRooms; }
            set { this.noOfMeetingRooms = value; }
        }
        public string MeetingRoomRatePerDay
        {
            get { return this.meetingRoomRatePerDay; }
            set { this.meetingRoomRatePerDay = value; }
        }
        public string Codings
        {
            get { return this.codings; }
            set { this.codings = value; }
        }
        public string NegotiatedRoomOnlyRate
        {
            get { return this.negotiatedRoomOnlyRate; }
            set { this.negotiatedRoomOnlyRate = value; }
        }
        public string BBNegotiatedRate
        {
            get { return this.bBNegotiatedRate; }
            set { this.bBNegotiatedRate = value; }
        }
        public string DBBNegotiatedRate
        {
            get { return this.dBBNegotiatedRate; }
            set { this.dBBNegotiatedRate = value; }
        }
        public string DDNegotiatedRate
        {
            get { return this.dDNegotiatedRate; }
            set { this.dDNegotiatedRate = value; }
        }
        public string HrNegotiatedRate
        {
            get { return this.hrNegotiatedRate; }
            set { this.hrNegotiatedRate = value; }
        }
        public string LastNegotiatedRate
        {
            get { return this.lastNegotiatedRate; }
            set { this.lastNegotiatedRate = value; }
        }
        public string ReNegotiateOn
        {
            get { return this.reNegotiateOn; }
            set { this.reNegotiateOn = value; }
        }
        public string PreferredStatus
        {
            get { return this.preferredStatus; }
            set { this.preferredStatus = value; }
        }
        public string Comments
        {
            get { return this.comments; }
            set { this.comments = value; }
        }
        public int Organizationid
        {
            get { return this.organizationid; }
            set { this.organizationid = value; }
        }

        public DataTable Getdata()
        {
            return p.Getdata();
        }
        public DataTable GetdataTrue()
        {
            return p.GetdataTrue();
        }
        public DataTable Search(PremiseEntity e)
        {
            return p.Search(e.Key);
        }
        public DataTable SearchTrue(PremiseEntity e)
        {
            return p.SearchTrue(e.Key);
        }
        public DataTable GetDataById(PremiseEntity e)
        {
            return p.GetdataByID(e.Organizationid);
        }
        public DataTable GetDataByIdP(PremiseEntity e)
        {
            return p.GetdataByIDP(e.PremisesID);
        }
        public DataTable GetAcc()
        {
            return p.GetAcc();
        
        }
        public DataTable GetAccById(PremiseEntity e)
        {
            return p.GetAccByID(e.PremisesID);
        }
        public DataTable GetJcpById(PremiseEntity e)
        {
            return p.GetJcpByID(e.PremisesID);
        }
        public DataTable GetLocDemById(PremiseEntity e)
        {
            return p.GetLocDemByID(e.PremisesID);
        }
        public DataTable GetLocHotById(PremiseEntity e)
        {
            return p.GetLocHotByID(e.PremisesID);
        }
        public DataTable GetLocTypById(PremiseEntity e)
        {
            return p.GetLocTypByID(e.PremisesID);
        }
        public DataTable GetOutLocById(PremiseEntity e)
        {
            return p.GetOutLocByID(e.PremisesID);
        }
        
        public DataTable GetCatTyp()
        {
            return p.GetCatTyp();
        }
        public DataTable GetJcpOff()
        {
            return p.GetJcpOff();
        }
        public DataTable GetLocDem()
        {
            return p.GetLocDem();
        }
        public DataTable GetLocHot()
        {
            return p.GetLocHot();
        }
        public DataTable GetLocTyp()
        {
            return p.GetLocTyp();
        }
        public DataTable GetOutLoc()
        {
            return p.GetOutLoc();
        }
        public int GetID()
        {
            return p.GetID();
        }
        public void InsertAcc(PremiseEntity e)
        {
            p.InsertAcc(e.PremisesID,e.RefID);
        }
        public void InsertJcpOff(PremiseEntity e)
        {
            p.InsertJcpOff(e.PremisesID, e.RefID);
        }
        public void InsertLocDem(PremiseEntity e)
        {
            p.InsertLocDem(e.PremisesID, e.RefID);
        }
        public void InsertLocHot(PremiseEntity e)
        {
            p.InsertLocHot(e.PremisesID, e.RefID);
        }
        public void InsertLocTyp(PremiseEntity e)
        {
            p.InsertLocTyp(e.PremisesID, e.RefID);
        }
        public void InsertOutLoc(PremiseEntity e)
        {
            p.InsertOutLoc(e.PremisesID, e.RefID);
        }
        public void DelAcc(PremiseEntity e)
        {
            p.DelAcc(e.PremisesID);
        }
        public void DelJcpOff(PremiseEntity e)
        {
            p.DelJcpOff(e.PremisesID);
        }
        public void DelLocDem(PremiseEntity e)
        {
            p.DelLocDem(e.PremisesID);
        }
        public void DelLocHot(PremiseEntity e)
        {
            p.DelLocHot(e.PremisesID);
        }
        public void DelLocTyp(PremiseEntity e)
        {
            p.DelLocTyp(e.PremisesID);
        }
        public void DelOutLoc(PremiseEntity e)
        {
            p.DelOutLoc(e.PremisesID);
        }
        public void Insert(PremiseEntity e)
        {
            p.Insert(e.LocationName,e.KnowAs,e.Organizationid,e.LocationStatus,e.LocationStatusDate,e.AddressLine1,e.AddressLine2,e.AddressLine3,e.PostCode,e.Town,e.County,e.Country,e.PrimaryLocation,e.LocationManaged,e.STNetworkConectivity,e.LocationDescription,e.PhonNumber,e.GeneralFaxNumber,e.MinicommNumber,e.IsNewShop,e.ShopFlagDate,e.SpecialistShop,e.MediaContact,e.MediaContactName,e.LocalDemographicNotes,e.CateringFacilities,e.CateringContact,e.CateringType,e.ISNetwork,e.ClientITFacilities,e.ClientITFacilitiesDetail,e.RoomAvailability,e.VolunteeringOpportunities,e.TravelDetail,e.TravelNearestBus,e.TravelNearestRail,e.TravelNearestAirport,e.HostVisits,e.HostingContact,e.VisitorParkingOnsite,e.VisitorParkingSpaces,e.VisitorParkingAltemnative,e.RoomOnlyRate,e.BAndBRate,e.DBBRate,e.DDRate,e.HrRate,e.TeaAndCoffe,e.Lunch,e.NoOfMeetingRooms,e.MeetingRoomRatePerDay,e.Codings,e.NegotiatedRoomOnlyRate,e.BBNegotiatedRate,e.DBBNegotiatedRate,e.DDNegotiatedRate,e.HrNegotiatedRate,e.LastNegotiatedRate,e.ReNegotiateOn,e.PreferredStatus,e.Comments,e.IsActive);
        }
        public void Update(PremiseEntity e)
        {
            p.Update(e.LocationName, e.KnowAs, e.PremisesID, e.LocationStatus, e.LocationStatusDate, e.AddressLine1, e.AddressLine2, e.AddressLine3, e.PostCode, e.Town, e.County, e.Country, e.PrimaryLocation, e.LocationManaged, e.STNetworkConectivity, e.LocationDescription, e.PhonNumber, e.GeneralFaxNumber, e.MinicommNumber, e.IsNewShop, e.ShopFlagDate, e.SpecialistShop, e.MediaContact, e.MediaContactName, e.LocalDemographicNotes, e.CateringFacilities, e.CateringContact, e.CateringType, e.ISNetwork, e.ClientITFacilities, e.ClientITFacilitiesDetail, e.RoomAvailability, e.VolunteeringOpportunities, e.TravelDetail, e.TravelNearestBus, e.TravelNearestRail, e.TravelNearestAirport, e.HostVisits, e.HostingContact, e.VisitorParkingOnsite, e.VisitorParkingSpaces, e.VisitorParkingAltemnative, e.RoomOnlyRate, e.BAndBRate, e.DBBRate,e.DDRate, e.HrRate, e.TeaAndCoffe, e.Lunch, e.NoOfMeetingRooms, e.MeetingRoomRatePerDay, e.Codings, e.NegotiatedRoomOnlyRate, e.BBNegotiatedRate, e.DBBNegotiatedRate, e.DDNegotiatedRate, e.HrNegotiatedRate, e.LastNegotiatedRate, e.ReNegotiateOn, e.PreferredStatus, e.Comments,e.IsActive);
        }
    }
}